import setting from '../../setting'

export default {
  appName: setting.appName,
  projectInfo: null,
  projectList: [],
  userInfo: {
    role: null,
    uid: null
  },
  userRole: [
    // { code: 0, name: '系统管理员', type: 'default', disabled: true },
    // { code: 1, name: '项目管理员', type: 'danger', disabled: false },
    // { code: 2, name: '技术管理员', type: 'warning', disabled: false },
    { code: 5, name: '项目管理员', type: 'primary', disabled: false },
    { code: 6, name: '测量管理员', type: 'success', disabled: false }
  ],
  coordinateType: [
    { code: 0, name: '平面坐标与高程' },
    { code: 1, name: '仅平面坐标' },
    { code: 2, name: '仅高程' }
  ],
  pointType: [
    { code: 0, name: '控制点' },
    { code: 1, name: '工作基点' },
    { code: 2, name: '监测点' }
  ],
  audit_types: [
    { code: 0, name: 'none', type: 'none', color: '#3c3c3c', background_color: '#3c3c3c', border_color: '#333' },
    { code: 1, name: '未提交审核', type: 'primary', color: '#409eff', background_color: '#ecf5ff', border_color: '#d9ecff' },
    { code: 2, name: '已提交审核', type: 'warning', color: '#e6a23c', background_color: '#fdf6ec', border_color: '#faecd8' },
    { code: 3, name: '未通过', type: 'danger', color: '#f56c6c', background_color: '#fef0f0', border_color: '#fde2e2' },
    { code: 4, name: '通过审核', type: 'success', color: '#67c23a', background_color: '#f0f9eb', border_color: '#e1f3d8' }
  ],
  map: {
    style: [
      { name: '基础', type: 'streets', url: 'mapbox://styles/mapbox/streets-v11' },
      { name: '浅色', type: 'light', url: 'mapbox://styles/mapbox/light-v10' },
      { name: '深色', type: 'dark', url: 'mapbox://styles/mapbox/dark-v10' },
      { name: '卫星', type: 'satellite', url: 'mapbox://styles/mapbox/satellite-streets-v11' }
    ]
  },
  // 树数据名称，定义前缀 tree
  tree_id: '',
  tree_data: null
}
